package com.shilan.dllo.wangyi.fragment;

import android.content.Context;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.support.v7.widget.GridLayoutManager;
import android.support.v7.widget.RecyclerView;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

import com.android.volley.RequestQueue;
import com.android.volley.toolbox.Volley;
import com.shilan.dllo.wangyi.R;

/**
 * Created by dllo on 15/10/23.
 */
public class ReadFragment extends Fragment {
    private RequestQueue queue;
    private RecyclerView readView;

    @Override
    public void onAttach(Context context) {
        super.onAttach(context);
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, ViewGroup container,
                             Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.activity_read,null);
        return null;
    }


    @Override
    public void onActivityCreated(@Nullable Bundle savedInstanceState) {
        super.onActivityCreated(savedInstanceState);
        initView();
    }
    private void initView(){
        queue= Volley.newRequestQueue(getActivity());
        readView = (RecyclerView) getActivity().findViewById(R.id.readView);
        GridLayoutManager gridLayoutManager = new GridLayoutManager(getActivity(),1);
        readView.setLayoutManager(gridLayoutManager);
    }
}
